﻿
package bsplib;
import bsplib.Vec3f;
import bsplib.Vec2f;

class BspVertex 
{
    
    public var index : Int;
    public var pos : Vec3f;
    public var uv : Vec2f;
    public var lmuv : Vec2f;
    
    public var screenZ : Float;
    
    public function new( index : Int, pos : Vec3f, uv : Vec2f, lmuv : Vec2f )
    {
        this.index = index;
        this.pos = pos;
        this.uv = uv;
        this.lmuv = lmuv;
    }
    
    public function clone() : BspVertex {
        return new BspVertex( index, pos.clone(), uv.clone(), lmuv.clone() );
    }
    
}